import request from '@/utils/request'

// 企业分页
export function enterprisePage(data) {
    return request({
        url: '/enterprise/page',
        method: 'post',
        data: data
    })
}
// 企业分页
export function enterpriseInfo(enterpriseId) {
    return request({
        url: `/enterprise/base/info/${enterpriseId}`,
        method: 'get'
    })
}

// 删除企业基础信息
export function enterpriseDel(enterpriseId) {
    return request({
        url: `/enterprise/base/del/${enterpriseId}`,
        method: 'get'
    })
}
// 企业环保信息
export function environmetInfo(enterpriseId) {
    return request({
        url: `/enterprise/environmet/info/${enterpriseId}`,
        method: 'get'
    })
}

// 企业绑定智能柜子柜门
export function bindingGrid(data) {
    return request({
        url: '/enterprise/binding/grid',
        method: 'post',
        data: data
    })
}

// 企业解绑智能柜子柜门
export function unbindingGrid(enterpriseId) {
    return request({
        url: '/enterprise/unbinding/grid/' + enterpriseId,
        method: 'get',
    })
}

// 新增企业基础信息
export function enterpriseAdd(data) {
    return request({
        url: '/enterprise/base/add',
        method: 'post',
        data: data
    })
}
// 修改企业基础信息
export function enterpriseEdit(data) {
    return request({
        url: '/enterprise/base/edit',
        method: 'post',
        data: data
    })
}
// 新增企业项目信息
export function environmetProjectAdd(data) {
    return request({
        url: '/enterprise/environmet/project/add',
        method: 'post',
        data: data
    })
}
// 修改企业项目信息
export function environmetProjectEdit(data) {
    return request({
        url: '/enterprise/environmet/project/edit',
        method: 'post',
        data: data
    })
}
// 新增企业排污许可证
export function environmetSewagedpAdd(data) {
    return request({
        url: '/enterprise/environmet/sewagedp/add',
        method: 'post',
        data: data
    })
}
// 修改企业排污许可证
export function environmetSewagedpEdit(data) {
    return request({
        url: '/enterprise/environmet/sewagedp/edit',
        method: 'post',
        data: data
    })
}

// 新增企业环境应急预案
export function environmetContingencyplAdd(data) {
    return request({
        url: '/enterprise/environmet/contingencypl/add',
        method: 'post',
        data: data
    })
}
// 修改企业环境应急预案
export function environmetContingencyplEdit(data) {
    return request({
        url: '/enterprise/environmet/contingencypl/edit',
        method: 'post',
        data: data
    })
}



// 新增企业污染物防治
export function environmetWastecoAdd(data) {
    return request({
        url: '/enterprise/environmet/wasteco/add',
        method: 'post',
        data: data
    })
}
// 修改企业污染物防治
export function environmetWastecolEdit(data) {
    return request({
        url: '/enterprise/environmet/wasteco/edit',
        method: 'post',
        data: data
    })
}


// 新增企业污染物统计
export function environmetWastetoAdd(data) {
    return request({
        url: '/enterprise/environmet/wasteto/add',
        method: 'post',
        data: data
    })
}
// 修改企业污染物统计
export function environmetWastetoEdit(data) {
    return request({
        url: '/enterprise/environmet/wasteto/edit',
        method: 'post',
        data: data
    })
}

// 查询 污染因子列表
export function wastetoFactorList(data) {
    return request({
        url: '/enterprise/environmet/wasteto/factor/list',
        method: 'post',
        data: data
    })
}

// 企业智慧环保管理数据
export function wisdomManage(enterpriseId) {
    return request({
        url: `/enterprise/wisdom/manage/${enterpriseId}`,
        method: 'get'
    })
}

